updated to copy BitmapData with copyPixels();#1069
updated to copy BitmapData with copyPixels();#1069dimensionscape wants to merge 1 commit intoGamua:masterfrom
Conversation
Update to fix issue with BitmapData distortion on DisplayObjects larger than the stage.
There was a problem hiding this comment.
There might be a more eloquent fix but this does remedy the issue of bitmapdata chunks getting turned upside down or placed incorrectly during processing. I'm not sure if this was an issue on mobile or macOS, but it was definitely generating images incorrectly on windows.
|
Thanks a lot for the pull request! I hadn't heard about this problem yet – so you say when you use "drawToBitmapData" on Windows, with an image size bigger than the backbuffer, some parts are upside down? I'm asking because I need to reproduce the problem before I can have a look at the fix. 😄 |
|
Yes, precisely. This occurs on Windows at least. I haven't checked on other platforms. Depending on the size of the stage, sometimes it works, sometimes it renders some of the chunks upside down. I'm not sure why the original code wasn't working, but assembling entire bitmapdata out via copyPixels() fixed it. I figured you would find the root cause, my fix is just a bandaid. Let me know if you have trouble reproducing the issue, I'd be happy to share the source for my test. |
|
Thanks a lot for the clarification! I'll have a look at it in the coming days. 👍 |
Update to fix issue with BitmapData distortion on DisplayObjects larger than the stage.